package mysql

import "gorm.io/gorm"

type Hippo struct {
	gorm.Model
	Name    string  `gorm:"type:varchar(20);noo null;comment:'商品名称'"`
	Price   float64 `gorm:"type:decimal(10,2);not null;comment:'商品价格'"`
	Image   string  `gorm:"type:varchar(500);not null;comment:'商品照片'"`
	ClassId int64   `gorm:"type:int(20);not null;comment:'分类Id'"`
}

type Class struct {
	gorm.Model
	Name string `gorm:"type:varchar(20);not null;comment:'分类名称'"`
}

type HippoData struct {
	Hippo
	className string
}
